<%@ include file="../common/taglibs.jsp"%>
<table class="tblAdminNormal" width="800px;">
<tr>
    <td>Code</td>
    <td><s:textfield theme="simple" name="code" cssStyle="width:150px" value="%{product.prdCode}" cssClass="removableElement"/></td>
</tr>
<tr>
    <td>Name</td>
    <td><s:textfield theme="simple"  name="name" cssStyle="width:150px"  value="%{product.prdName}"  cssClass="removableElement"/></td>
</tr>
<tr>
    <td>Description</td>
    <td><s:textfield theme="simple"  name="desc" cssStyle="width:150px"  value="%{product.prdDesc}" cssClass="removableElement"/></td>
</tr>
<tr>
    <td>Vendor</td>
    <td><s:textfield theme="simple"  name="vendor" cssStyle="width:150px"  value="%{product.vendor}" cssClass="removableElement"/></td>
</tr>
<tr>
    <td>Re-order level</td>
    <td><s:textfield theme="simple"  name="reOrderLevel" cssStyle="width:150px"  value="%{product.reOrderLevel}" cssClass="removableElement"/></td>
</tr>
<tr>
    <td>Critical Lower Threshold</td>
    <td><s:textfield theme="simple"  name="clt" cssStyle="width:150px"  value="%{product.clt}" cssClass="removableElementLast"/></td>
</tr>
<tr>
	<td colspan="2">
	<table id = "airlines" width="100%" class="sample">
		<tr>
			<th>
			Airline
			</th>
			<th>
			Unit price
			</th>
			<th>
			Discount
			</th>
		</tr>
		<s:iterator value="%{product.airlineDetails}" var="airlineDetail">
			<tr>
				<td>
					<s:label value="%{airline.alDesc}" theme="simple"/>
				</td>
				<td>
					<s:label value="%{unitPrice}" theme="simple" />
				</td>
				<td>
					<s:label value="%{discountRate}" theme="simple" />
				</td>
				<td>
					<a href="#">Edit</a>
				</td>
			</tr>
		</s:iterator>
	</table>
	</td>
</tr>
</table>	